<%-- 
    Document   : BookSearchResult
    Created on : 2020-4-17, 14:00:13
    Author     : zhang
--%>

<%@page import="java.util.List"%>
<%@page import="entity.Book"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>查询结果</h1>
        <div style="position:absolute;left:500px"><a href="index">返回首页</a></div>
        <%
            List<Book> list=(List<Book>)request.getAttribute("list");
            for(Book book:list){
        %>
        <a href="gbbi?id=<%=book.getId()%>">
            <h3><%=book.getBookName()%></h3>
            <div style="width: 200px;height:300px;border:1px solid #000">
                <img src="img/<%=book.getCover()%>" width="200px" height="300px" alt="<%=book.getBookName()%>">
            </div>
            <div style="width: 300px;height:250px" >
                <p>编号：<%=book.getId()%></p>
                <p>作者：<%=book.getAuthor()%></p>
                <p>出版日期：<%=book.getPublishDate()%></p>
                <p>出版社：<%=book.getPublishHouse()%></p>
              </div>
        </a>
            <%
                }
            %>
        
    </body>
</html>
